.class public final Lcom/wqmobile/sdk/protocol/k;
.super Ljava/lang/Thread;


# static fields
.field private static a:Lcom/wqmobile/sdk/protocol/k;


# instance fields
.field private b:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/k;->b:Landroid/os/Handler;

    return-void
.end method

.method public static a()Lcom/wqmobile/sdk/protocol/k;
    .locals 1

    sget-object v0, Lcom/wqmobile/sdk/protocol/k;->a:Lcom/wqmobile/sdk/protocol/k;

    if-nez v0, :cond_0

    new-instance v0, Lcom/wqmobile/sdk/protocol/k;

    invoke-direct {v0}, Lcom/wqmobile/sdk/protocol/k;-><init>()V

    sput-object v0, Lcom/wqmobile/sdk/protocol/k;->a:Lcom/wqmobile/sdk/protocol/k;

    invoke-virtual {v0}, Lcom/wqmobile/sdk/protocol/k;->start()V

    :cond_0
    sget-object v0, Lcom/wqmobile/sdk/protocol/k;->a:Lcom/wqmobile/sdk/protocol/k;

    return-object v0
.end method

.method public static b()Landroid/os/Handler;
    .locals 2

    invoke-static {}, Lcom/wqmobile/sdk/protocol/k;->a()Lcom/wqmobile/sdk/protocol/k;

    move-result-object v0

    iget-object v1, v0, Lcom/wqmobile/sdk/protocol/k;->b:Landroid/os/Handler;

    if-nez v1, :cond_0

    invoke-direct {v0}, Lcom/wqmobile/sdk/protocol/k;->c()V

    :cond_0
    iget-object v0, v0, Lcom/wqmobile/sdk/protocol/k;->b:Landroid/os/Handler;

    return-object v0
.end method

.method private c()V
    .locals 1

    iget-object v0, p0, Lcom/wqmobile/sdk/protocol/k;->b:Landroid/os/Handler;

    if-nez v0, :cond_0

    new-instance v0, Lcom/wqmobile/sdk/protocol/l;

    invoke-direct {v0, p0}, Lcom/wqmobile/sdk/protocol/l;-><init>(Lcom/wqmobile/sdk/protocol/k;)V

    iput-object v0, p0, Lcom/wqmobile/sdk/protocol/k;->b:Landroid/os/Handler;

    :cond_0
    return-void
.end method


# virtual methods
.method public final run()V
    .locals 0

    invoke-static {}, Landroid/os/Looper;->prepare()V

    invoke-direct {p0}, Lcom/wqmobile/sdk/protocol/k;->c()V

    invoke-static {}, Landroid/os/Looper;->loop()V

    return-void
.end method
